FROM python:3.11.5

RUN mkdir -p /app
WORKDIR /app
ADD . /app
RUN pip3 install uwsgi -i https://mirrors.aliyun.com/pypi/simple
RUN pip3 install -r ./requirements.txt -i https://mirrors.aliyun.com/pypi/simple

# 推荐使用脚本辅助启动，直接CMD uwsgi --ini uwsgi.ini很坑
CMD ["uwsgi","--ini","uwsgi.ini"]
